<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <!-- 让用户输入自己的年龄，姓名，性别，再输出到网页 -->
  <script>
    let age = prompt("请输入年龄：")
    let uName = prompt("请输入姓名：")
    let sex = prompt("请输入性别：")

    document.write(age)
    document.write(uName)
    document.write(sex)
  </script>
</body>

</html>